<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "good_price".
 *
 * @property int $id
 * @property int $good_id 商品id
 * @property string $specs_code 套餐code
 * @property string $specs_name 套餐名称
 * @property string $specs_price 套餐价格
 * @property int $status 状态
 * @property int $created_at 创建时间
 */
class GoodPrice extends Base
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'good_price';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['good_id', 'status', 'created_at'], 'integer'],
            [['specs_price'], 'number'],
            [['specs_code', 'specs_name'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'good_id' => 'Good ID',
            'specs_code' => 'Specs Code',
            'specs_name' => 'Specs Name',
            'specs_price' => 'Specs Price',
            'status' => 'Status',
            'created_at' => 'Created At',
        ];
    }
}
